// 导入页面组件
import Login from "./pages/Login";
import Layout from "./pages/Layout";
// 导入路由
import { BrowserRouter as Router, Route, Redirect } from "react-router-dom";
//导入app的样式
import './App.scss'

// 配置路由规则
function App() {
  return (
    <Router>
      <div className="app">
        <Route exact path="/" render={() => <Redirect to="/home" />} />

        <Route path="/home">
          <Layout />
        </Route>
        <Route path="/login">
          <Login />
        </Route>
      </div>
    </Router>
  );
}

export default App;
